package com.open.rbac.model.dto.sys;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import com.open.center.model.dto.BaseDto;
import com.open.rbac.constant.BooleanType;


/**
 * 角色
 *
 * @author Riche's
 * @since 2022/8/23
 */

@Schema(name = "RoleDto", description = "角色")
@EqualsAndHashCode(callSuper = true)
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class RoleDto extends BaseDto {

    @Schema(description = "角色ID")
    private String id;

    @Schema(description = "角色名称")
    private String name;

    @Schema(description = "是否为内置角色")
    private BooleanType immutable;

    @Schema(description = "是否启用")
    private boolean enable;

    @Schema(description = "备注")
    private String remark;

}
